import 'package:flutter/material.dart';

///
/// 消息分隔线（可用于列表开始的提示、底部的提示、中间的分隔等）
///
class DDLine extends StatelessWidget {
  final String message;
  DDLine({this.message="我是有底线的"});

  @override
  Widget build(BuildContext context) {
    return new Container(
      color: Colors.grey,
      padding: EdgeInsets.fromLTRB(5.0, 15.0, 5.0, 15.0),
      child: new Row(
        children: <Widget>[
          new Expanded(
            child: new Divider(height: 10.0,),
            flex: 1,
          ),
          new Text(message),
          new Expanded(
            child: new Divider(height: 10.0,),
            flex: 1,
          ),
        ],
      ),
    );
  }
}